import logging
from dataclasses import dataclass

@dataclass
class ZapLogger:
    def new_zap_logger(self) -> logging.Logger:
        logger = logging.getLogger("zap")
        handler = logging.StreamHandler()
        formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
        handler.setFormatter(formatter)
        logger.addHandler(handler)
        logger.setLevel(logging.DEBUG)
        return logger
